package com.jiangyg.mall.admin.dto;

import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.util.List;

/**
 * 类描述：用户资源关联关系
 *
 * @author jiangyg
 * @date 2021-10-17
 */
@Data
@NoArgsConstructor
@EqualsAndHashCode
public class UserResourceDTO implements Serializable {

    private static final long serialVersionUID = -1539097787692381480L;

    /**
     * 用户ID
     */
    @NotNull
    private Long userId;

    /**
     * 资源ID集合
     */
    @NotNull
    private List<Long> resourceIds;

}
